home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / portable / meta.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  1.4 KB  |  60 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef    meta
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_meta = "$Header: C:\CURSES\portable\RCS\meta.c 2.1 1993/06/18 20:20:17 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   meta()    - Force the number of significant bits on input.
  15.  
  16.   Ultrix 4.1 Description:
  17.      This function forces the user's terminal to return 7 or 8
  18.      significant bits on input.  To force 8 bits to be returned,
  19.      invoke meta() with bf as TRUE.  To force 7 bits to be returned,
  20.      invoke meta() with bf as FALSE.
  21.  
  22.      The window argument is always ignored, but it must still be a
  23.      valid window to avoid compiler errors.
  24.  
  25.   PDCurses Description:
  26.      This function is provided for portability.  By default, 8 bits
  27.      are returned.
  28.  
  29.      FYI:  The Ultrix DOC needs confirmation...
  30.  
  31.   PDCurses Return Value:
  32.      The meta() function returns OK.
  33.  
  34.   PDCurses Errors:
  35.      No errors are defined for this function.
  36.  
  37.   Portability:
  38.      PDCurses    int meta( WINDOW* win, bool bf );
  39.      BSD Curses    int meta( WINDOW* win, bool bf );
  40.      SYS V Curses    int meta( WINDOW* win, bool bf );
  41.  
  42. **man-end**********************************************************************/
  43.  
  44. int    meta( WINDOW *win, bool bf )
  45. {
  46. #ifdef PDCDEBUG
  47.     if (trace_on) PDC_debug("meta() - called\n");
  48. #endif
  49.  
  50. #ifdef UNIX
  51. /* INCOMPLETE */
  52. #endif
  53.  
  54. #ifdef    TC
  55. # pragma argsused;
  56. #endif
  57.     _cursvar.raw_inp = bf;
  58.     return( OK );
  59. }
  60.